package com.ctshk.rpc.bus.dto;

import com.ctshk.common.req.MainData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 巴士线路详情dto
 * </p>
 *
 * @author 彭柳霖
 * @since 2021-02-09
 */
@Data
@ApiModel(value="BusLineDto对象", description="巴士线路详情dto")
public class BusLineDTO implements Serializable {

    @ApiModelProperty(value = "路线id")
    private Long id;

    @ApiModelProperty(value = "巴士公司id")
    private Long busCompaniesId;

    @ApiModelProperty(value = "巴士公司名称")
    private String busCompaniesName;

    @ApiModelProperty(value = "线路名称")
    private String lineName;

    @ApiModelProperty(value = "车辆类型")
    private Integer vehicleType;

    @ApiModelProperty(value = "出发城市id")
    private Long departureCityId;

    @ApiModelProperty(value = "出发城市名称")
    private String departureCityName;

    @ApiModelProperty(value = "到达城市id")
    private Long arriveCityId;

    @ApiModelProperty(value = "到达城市名称")
    private String arriveCityName;

    @ApiModelProperty(value = "关口id")
    private Long gatewayId;

    @ApiModelProperty(value = "关口名称")
    private String gatewayName;

    @ApiModelProperty(value = "始发站id")
    private Long departureStationId;

    @ApiModelProperty(value = "始发站名称")
    private String departureStationName;

    @ApiModelProperty(value = "终点站id")
    private Long terminusId;

    @ApiModelProperty(value = "终点站名称")
    private String terminusName;

    @ApiModelProperty(value = "预计耗时")
    private Integer estimatedTime;

    @ApiModelProperty(value = "是否有效 1-有效 2-无效")
    private Integer status;

    @ApiModelProperty(value = "座位号,逗号分割开")
    private String seatNumbers;

    @ApiModelProperty(value = "小童岁数起始")
    private Integer childAgeBegin;

    @ApiModelProperty(value = "小童岁数结束")
    private Integer childAgeEnd;

    @ApiModelProperty(value = "成人岁数起始")
    private Integer adultAgeBegin;

    @ApiModelProperty(value = "成人岁数结束")
    private Integer adultAgeEnd;

    @ApiModelProperty(value = "长者岁数起始")
    private Integer oldAgeBegin;
    
    @ApiModelProperty("座位号列表")
    private List<String> seatNumberList;

    @NotNull(message = "经停站不能为空")
    @ApiModelProperty(value = "经停站数组")
    private MainData[] siteNames;
    
    @ApiModelProperty("车站列表（起点站、经停站、终点站）")
    private List<MainData> stationList = new ArrayList<>();

}
